package com.bckj.freshnow.user.convert;

import com.bckj.freshnow.user.entity.User;
import com.bckj.freshnow.user.model.UserResponse;
import com.bckj.freshnow.user.model.UserRequest;

import org.mapstruct.Mapper;
import org.mapstruct.MappingConstants;

/**
 * 用户表(User)数据转换
 *
 * @author makejava
 * @since 2025-04-21 09:24:21
 */
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
public interface UserConvert {

    User request2Bean(UserRequest request);
    
    UserResponse bean2Response(User bean);
}
